]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
util: drop call that can't do anything
authorRay Strode <rstrode@redhat.com>
Wed, 17 Jul 2013 20:02:55 +0000 (16:02 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 18 Jul 2013 13:23:11 +0000 (09:23 -0400)
this._clearMessageQueue() is a noop when this.hasPendingMessages is
false so calling it in that case doesn't make sense.

This commit drops that call.

https://bugzilla.gnome.org/show_bug.cgi?id=704347

js/gdm/util.js

index 04b2d49f8d0ff4b1bd6bf61af25aadca6f618e9a..c9af991ccc8651b3f1bca2f915c9386b14882d81 100644 (file)
@@ -164,7 +164,6 @@ const ShellUserVerifier = new Lang.Class({
 
     answerQuery: function(serviceName, answer) {
         if (!this.hasPendingMessages) {
-            this._clearMessageQueue();
             this._userVerifier.call_answer_query(serviceName, answer, this._cancellable, null);
         } else {
             let signalId = this.connect('no-more-messages',